.section2 {
    padding-top: 130px;
    position: relative;
    overflow: hidden;
}

.box2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.box2 .item {
    margin-bottom: 50px;
    width: 32%;
    position: relative;
}

.box2 .item img {
    width: 100%;
    position: relative;
}

.box2 .item span {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .3);
    opacity: 0;
    transition: all .3s;
}

.box2 .item:hover span {
    opacity: 1;
}

.box2 .item .text {
    width: 230px;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    color: #000;
    text-align: center;
    font-weight: bold;
    position: absolute;
    top: 45px;
    left: 40px;
    z-index: 2;
    transition: all .3s;
    padding: 15px 0;
}

.box2 .item:hover .text {
    color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: #fff;
    transition: all .3s;
}


.box2 .item .text h1 {
    font-size: 18px;
    margin: 0;
    line-height: 2;
    font-weight: bold;
}

.box2 .item .text h2 {
    font-size: 14px;
    margin: 0;
    line-height: 2;
    font-weight: bold;
}

@media (max-width: 1600px) {
    .box2 .item {
        width: 48%;
    }
}

@media (max-width: 1440px) {}

@media (max-width: 1200px) {}

@media (max-width: 992px) {
    .box2 .item {
        width: 100%;
    }
}

@media (max-width: 750px) {
    .box2 .item {
        margin-bottom: .4rem;

    }

    .box2 .item .text {
        width: 4rem;
    }

    .box2 .item .text h1 {
        font-size: .3rem;
        line-height: .75rem;
    }

    .box2 .item .text h2 {
        font-size: .24rem;
        line-height: .75rem;
    }

    .box2 .item:hover .text {
        left: calc(50% - 2rem);
        top: calc(50% - 38px);
        margin: 0;
    }
}